package com.survey.demo.ui.activity;

import android.widget.ImageView;

import com.bumptech.glide.load.MultiTransformation;
import com.bumptech.glide.load.resource.bitmap.CenterCrop;
import com.bumptech.glide.load.resource.bitmap.CircleCrop;
import com.survey.demo.R;
import com.survey.demo.app.AppActivity;
import com.survey.demo.http.glide.GlideApp;

/**
 *    author : Android 轮子哥
 *    github : https://github.com/getActivity/AndroidProject
 *    time   : 2018/10/18
 *    desc   : 个人资料界面
 */
public final class PersonInfoActivity extends AppActivity {
    private ImageView headerIv;
    @Override
    protected int getLayoutId() {
        return R.layout.person_activity;
    }

    @Override
    protected void initView() {
        headerIv = findViewById(R.id.iv_header_icon);
        GlideApp.with(this)
                .load(R.drawable.example_bg)
                .transform(new MultiTransformation<>(new CenterCrop(), new CircleCrop()))
                .into(headerIv);
    }

    @Override
    protected void initData() {

    }
}